Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use our data set to work out if a module is a node module #338

Merged
merged 2 commits into from
Sep 18, 2024

Conversation

scagood
Copy link

@scagood scagood commented Sep 17, 2024

closes #337

@scagood scagood requested a review from aladdin-add September 17, 2024 15:05
@scagood scagood added bug rule:update An update to a current rule labels Sep 17, 2024
const getConfiguredNodeVersion = require("../util/get-configured-node-version")
const getSemverRange = require("../util/get-semver-range")
const visitImport = require("../util/visit-import")
const visitRequire = require("../util/visit-require")
const mergeVisitorsInPlace = require("../util/merge-visitors-in-place")
const {
NodeBuiltinModules,
} = require("../unsupported-features/node-builtins.js")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nits: we could move node-builtins.js to outer - it's now not just used by those rules. :)

Copy link
Author

@scagood scagood Sep 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do you think we should put the directory?

I was also thinking about going through and merging the no-deprecated-api into the unsupported-features so its all in one place as a consistent data set 🤔

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do you think we should put the directory?

maybe /lib/dataset/?

I was also thinking about going through and merging the no-deprecated-api into the unsupported-features

It would be nice if these rules could share data, so we don't have to worry about updating one and forgetting the other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug rule:update An update to a current rule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: prefer-node-protocol rule and deprecated builtins
2 participants